package src.main.BehavioralPatterns.Strategy;

// 具体策略：信用卡支付
public class CreditCardPayment implements PaymentStrategy {
    private String cardNumber;
    private String cvv;

    public CreditCardPayment(String cardNumber, String cvv) {
        this.cardNumber = cardNumber;
        this.cvv = cvv;
    }

    @Override
    public void pay(double amount) {
        System.out.println("Paying " + amount + " credit card");
        System.out.println("Card Number: " + cardNumber);
        System.out.println("CVV: " + cvv);
    }
}
